/**
 * @description 页面导航
 */

const mongoose = require("../db/mongoose.js");

const navSchema = mongoose.Schema(
  {
    pid: String,
    // 导航名称
    name: String,
    // 跳转地址
    linkName: String,
  },
  { timestamps: true }
);

// 导航栏
const NavModel = mongoose.model("nav", navSchema);

module.exports = NavModel;
